﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Reflection;
using System.ServiceModel;
using System.Security.Policy;

namespace HomeFramework.Model
{
    public partial class Handler
    {
        public int ReferenceCount { get { return References.Count; } }

        public uint VersionValue
        {
            get
            {
                var str = Version.Split('.');
                uint risp = 0;
                int x = 1;
                foreach (var s in str.Reverse())
                {
                    risp += (uint)int.Parse(s) * (uint)x;
                    x *= 1000;
                }
                return risp;
            }
        }
    }
}